package com.qikux.entity;

import com.qikux.annotation.Column;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder(toBuilder = true)
public class ResourceType extends Entity{

    @Column("type_name")
    private String typeName;

    private Long pid;
    /**
     * 查询所有的孩子
     */
    private List<ResourceType> children;
}
